﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
@model TaoPortal.Areas.Admin.Models.SimplePageModel
<script src="~/Areas/Admin/Content/xheditor/xheditor-1.2.1.min.js"></script>
<script src="~/Areas/Admin/Content/xheditor/xheditor_lang/zh-cn.js"></script>
<div class="row-fluid" style="margin-top: 20px">
    <div class="span24 span-first">
        <form class="form-horizontal" method="post" action="/Admin/SimplePage/AddPage">
            <div class="control-group">
                <label class="control-label"><s>*</s>页面标题：</label>
                <div class="controls">
                    @Html.TextBoxFor(x => x.AddModel.PTitle, new { style = "width:350px" })
                </div>
            </div>
            <div class="control-group">
                <label class="control-label"><s>*</s>页面标识：</label>
                <div class="controls">
                    @Html.TextBoxFor(x => x.AddModel.PKey, new { style = "width:350px" })
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" style="height:242px"><s>*</s>页面Html：</label>
                <div class="controls" style="height:242px">
                    @Html.TextAreaFor(x => x.AddModel.PBody, new { @class = "ckeditor", style = "height:230px;width:670px" })
                </div>
            </div>
            <hr>
            <div style="text-align: center">
                <button class="button button-primary" type="submit">提交</button>
                <button class="button" type="reset" onclick="parent.CloseWin()">取消</button>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
    $('#AddModel_PageBody').xheditor();
</script>
